Part Number Hot Search : 
85HF14 2412S 12C10 15KW20A 100N1 SF1605G 15KW20A SPL8801
Product Description
Full Text Search
 

To Download PICDEMPIC18 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? 2008 microchip technology inc. ds51721b picdem? pic18 explorer demonstration board user?s guide
ds51721b-page ii ? 2008 microchip technology inc. information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. it is your responsibility to ensure that your application meets with your specifications. microchip makes no representations or warranties of any kind whether express or implied, written or oral, statutory or otherwise, related to the information, including but not limited to its condition, quality, performance, merchantability or fitness for purpose . microchip disclaims all liability arising from this information and its use. use of microchip devices in life support and/or safety applications is entirely at the buyer?s risk, and the buyer agrees to defend, indemnify and hold harmless microchip from any and all damages, claims, suits, or expenses resulting from such use. no licenses are conveyed, implicitly or otherwise, under any microchip intellectual property rights. trademarks the microchip name and logo, the microchip logo, accuron, dspic, k ee l oq , k ee l oq logo, mplab, pic, picmicro, picstart, pro mate, rfpic and smartshunt are registered trademarks of microchip tec hnology incorporated in the u.s.a. and other countries. filterlab, linear active thermistor, mxdev, mxlab, seeval, smartsensor and the embedded control solutions company are registered trademarks of microchip technology incorporated in the u.s.a. analog-for-the-digital age, appl ication maestro, codeguard, dspicdem, dspicdem.net, dspicworks, dsspeak, ecan, economonitor, fansense, in-circuit serial programming, icsp, icepic, mindi, miwi, mpasm, mplab certified logo, mplib, mplink, mtouch, pickit, picdem, picdem.net, pictail, pic 32 logo, powercal, powerinfo, powermate, powertool, real ice, rflab, select mode, total endurance, uni/o, wiperlock and zena are trademarks of microchip technology incorporated in the u.s.a. and other countries. sqtp is a service mark of microchip technology incorporated in the u.s.a. all other trademarks mentioned herein are property of their respective companies. ? 2008, microchip technology incorporated, printed in the u.s.a., all rights reserved. printed on recycled paper. note the following details of the code protection feature on microchip devices: ? microchip products meet the specification cont ained in their particular microchip data sheet. ? microchip believes that its family of products is one of the mo st secure families of its kind on the market today, when used i n the intended manner and under normal conditions. ? there are dishonest and possibly illegal methods used to breach the code protection feature. all of these methods, to our knowledge, require using the microchip produc ts in a manner outside the operating specifications contained in microchip?s data sheets. most likely, the person doing so is engaged in theft of intellectual property. ? microchip is willing to work with the customer who is concerned about the integrity of their code. ? neither microchip nor any other semiconductor manufacturer c an guarantee the security of their code. code protection does not mean that we are guaranteeing the product as ?unbreakable.? code protection is constantly evolving. we at microchip are co mmitted to continuously improvi ng the code protection features of our products. attempts to break microchip?s c ode protection feature may be a violation of the digital millennium copyright act. if such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that act. microchip received iso/ts-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in chandler and tempe, arizona; gresham, oregon and design centers in california and india. the company?s quality system processes and procedures are for its pic ? mcus and dspic ? dscs, k ee l oq ? code hopping devices, serial eeproms, microperipherals, nonvolatile memory and analog products. in addition, microchip?s quality system for the design and manufacture of development systems is iso 9001:2000 certified.
? 2008 microchip technology inc. ds51721b-page iii picdem? pic18 explorer demonstration board user?s guide table of contents preface ....................................................................................................................... .... 1 chapter 1. introduction 1.1 introduction ..................................................................................................... 5 1.2 development kit contents .............................................................................. 5 1.3 picdem? pic18 explorer demonstration board ......................................... 6 1.4 sample devices ............................................................................................. 7 1.5 sample programs ........................................................................................... 7 chapter 2. getting started 2.1 board as stand-alone device ........................................................................ 9 2.2 board with in-circuit debugger .................................................................... 11 2.3 board with pim attached devices ................................................................ 12 2.4 programming the microcontrollers ............................................................... 16 2.5 connecting to host pc for rs-232 communication .................................... 19 chapter 3. picdem? pic18 explorer demonstration board tutorial program 3.1 tutorial program operation .......................................................................... 23 3.2 source code and data sheets ..................................................................... 25 appendix a. hardware details a.1 hardware elements ..................................................................................... 27 a.2 board layout and schematics ..................................................................... 30 worldwide sales and service .................................................................................... 34
picdem? pic18 explorer demonstration board user?s guide ds51721b-page iv ? 2008 microchip technology inc. notes:
picdem? pic18 explorer demonstration board user?s guide ? 2008 microchip technology inc. ds51721b-page 1 preface introduction this chapter contains general information that will be useful to know before using the picdem? pic18 explorer demonstration board. items discussed in this chapter include: ? document layout ? conventions used in this guide ? warranty registration ? recommended reading ? the microchip web site ? development systems customer change notification service ? customer support ? document revision history document layout this document describes how to use the picdem pic18 explorer demonstration board as a development tool to emulate and debug firmware on a target board. the manual layout is as follows: ? chapter 1. ?introduction? ? overview of the development board and kit ? chapter 2. ?getting started? ? description of the different ways to use the board ? chapter 3. ?picdem? pic18 explorer demonstration board tutorial program? ? explanation of the tutorial preprogrammed on the sample devices ? appendix a. ?hardware details? ? description of the board?s hardware elements, including layout and schematic drawings notice to customers all documentation becomes dated, and this manual is no exception. microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. please refer to our web site (www.microchip.com) to obtain the latest documentation available. documents are identified with a ?ds? number. this number is located on the bottom of each page, in front of the page number. the numbering convention for the ds number is ?dsxxxxxa?, where ?xxxxx? is the document number and ?a? is the revision level of the document. for the most up-to-date information on development tools, see the mplab ? ide on-line help. select the help menu, and then topics to open a list of available on-line help files.
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 2 ? 2008 microchip technology inc. conventions used in this guide this manual uses the following documentation conventions: documentation conventions description represents examples arial font: italic characters referenced books mplab ? ide user?s guide emphasized text ...is the only compiler... initial caps a window the output window a dialog the settings dialog a menu selection select enable programmer quotes a field name in a window or dialog ?save project before build? underlined, italic text with right angle bracket a menu path file>save bold characters a dialog button click ok a tab click the power tab a button on board press rb0 . n?rnnnn a number in verilog format, where n is the total number of digits, r is the radix and n is a digit. 4?b0010, 2?hf1 text in angle brackets < > a key on the keyboard press , courier new font: plain courier new sample source code #define start filenames autoexec.bat file paths c:\mcc18\h keywords _asm, _endasm, static command-line options -opa+, -opa- bit values 0, 1 constants 0xff, ?a? italic courier new a variable argument file .o , where file can be any valid filename square brackets [ ] optional arguments mcc18 [options] file [options] curly brackets and pipe character: { | } choice of mutually exclusive arguments; an or selection errorlevel {0|1} ellipses... replaces repeated text var_name [, var_name...] represents code supplied by user void main (void) { ... }
preface ? 2008 microchip technology inc. ds51721b-page 3 warranty registration please complete the enclosed warranty registration card and mail it promptly. sending in the warranty registration card entitles users to receive new product updates. interim software releases are available at the microchip web site. recommended reading this user?s guide describes how to use the picdem pic18 explorer demonstration board. other useful documents are listed below. ? on the board kit?s cd-rom: - readme file - other reference documents ? other documents, available at http://microchip.com : - ?mplab ? icd 2 in-circuit debugger user?s guide? (ds51331) - ?pickit? 2 programmer/debugger user?s guide? (ds51553) - ?microchip development systems ordering guide? (ds30177) the microchip web site microchip provides online support via our web site at http://microchip.com . this web site is used as a means to make files and information easily available to customers. the web site contains the following information: ? product support ? data sheets and errata, application notes and sample programs, design resources, user?s guides and hardware support documents, latest software releases and archived software ? general technical support ? frequently asked questions (faqs), technical support requests, online discussion groups, microchip consultant program member listing ? business of microchip ? product selector and ordering guides, latest microchip press releases, listing of seminars and events, listings of microchip sales offices, distributors and factory representatives
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 4 ? 2008 microchip technology inc. development systems custome r change notification service microchip?s customer notification service helps keep customers current on microchip products. subscribers will receive e-mail notification whenever there are changes, updates, revisions or errata related to a specified product family or development tool of interest. to register, access the microchip web site at http://microchip.com , click on customer change notification and follow the registration instructions. the development systems product group categories are: ? compilers ? the latest information on microchip c compilers and other language tools. these include the mplab c18 and mplab c30 c compilers; mpasm? and mplab asm30 assemblers; mplink? and mplab link30 object linkers; and mplib? and mplab lib30 object librarians. ? emulators ? the latest information on microchip in-circuit emulators.this includes the mplab ice 2000 and mplab ice 4000. ? in-circuit debuggers ? the latest information on the microchip in-circuit debugger, mplab icd 2. ? mplab ? ide ? the latest information on microchip mplab ide, the windows ? integrated development environment for development systems tools. this list is focused on the mplab ide, mplab sim simulator, mplab ide project manager and general editing and debugging features. ? programmers ? the latest information on microchip programmers. these include the mplab pm3 and pro mate ? ii device programmers and the picstart ? plus and pickit? 1 development programmers. customer support users of microchip products can receive assistance through several channels: ? distributor or representative ? local sales office ? field application engineer (fae) ? technical support customers should contact their distributor, representative or field application engineer (fae) for support. local sales offices are also available to help customers. a listing of sales offices and locations is included in the back of this document. technical support is available through the web site at: http://support.microchip.com . document revision history revision a (march 2008) ? initial release of this document. revision b (may 2008) ? name and title change.
? 2008 microchip technology inc. ds51721b-page 5 picdem? pic18 explorer demonstration board user?s guide chapter 1. introduction 1.1 introduction the picdem? pic18 explorer demonstration board is the latest demonstration board for evaluating microchip technology?s pic18fxxxx and pic18fxxjxx families of devices. the board can be used as a stand-alone device or with an in-circuit debugger, such as the mplab ? icd 2, and host pc. sample programs are provided to demonstrate the unique features of the supported devices. free software development tools are available for application development and debugging. 1.2 development kit contents the picdem pic18 explorer demonstration board kit comes with the following: ? picdem? pic18 explorer demonstration board (figure 1-1) ? board-mounted pic18f8722 and an alternate pic18f87j11 mounted on a plug-in module (pim) ? cd-rom that contains: - sample programs, source code and hex files - ?picdem? pic18 explorer demonstration board user?s guide? - other referenced documents if you are missing any part of the kit, contact your nearest microchip sales office listed in the back of this publication. the mplab ? integrated development environment (ide) is a free, integrated software tool set for application development and debugging. compilers and other board-compatible software and hardware tools can be purchased. to download the mplab ide software and documentation, or get information on the other tools, visit http://microchip.com .
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 6 ? 2008 microchip technology inc. 1.3 picdem? pic18 explorer demonstration board the picdem pic18 explorer demonstration board has the following hardware features with each feature?s number corresponding to the number in figure 1-1 that shows the feature?s location on the board: 1. pic18f8722 microcontroller ? the sample, primary microcontroller mounted on the board. 2. male header pins for connecting plug-in modules (pims). a pim enables an alternate pic18 device to be connected to the board, as the primary microcontroller. 3. in-circuit debugger (icd) connector. 4. six-pin, pickit? 2 connector. 5. 10 k potentiometer for analog inputs. 6. push button switch ? for external reset. 7. usb connector ? for rs-232 communication. 8. pic18lf2450 microcontroller ? for converting rs-232 communication to usb protocol for attachment of a host pc. 9. 12 mhz crystal ? for the pic18lf2450 microcontroller. 10. rs-232 db9 socket and associated hardware ? for direct connection to an rs-232 interface. 11. jumper j13 for routing rs-232 communication through either the usb port or the rs-232 socket. 12. jumper j4 ? for selecting between programming the main pic ? device or the pic18lf2450, used for usb to rs-232 communication. 13. switch s4 ? for designating the main microcontroller as either the board-mounted pic18f8722 or a pim-mounted microcontroller. 14. led ? for power-on indication. 15. jp1 ? for disconnecting the eight display leds. 16. eight leds. 17. 32.768 khz crystal ? for timer1 clock operation. 18. two push button switches ? for external stimulus. 19. analog temperature sensor, mpc9701a. 20. 25lc256 spi eeprom. 21. jp2 ? to enable/disable eeprom. 22. jp3 ? to enable/disable lcd. 23. 10 mhz crystal ? for the main microcontroller. 24. pictail? daughter board connector socket. 25. spi i/o expander ? for lcd display, mcp23s17. 26. prototype area ? for user hardware. 27. lcd display. 28. j2 three-pin, male header ? for selecting between a voltage of 3.3v or 5v. 29. j14 four-pin, male header ? for use with a pim, if required, to connect 3.3v or 5v, v in and ice mclr .
introduction ? 2008 microchip technology inc. ds51721b-page 7 figure 1-1: picdem? pic18 ex plorer demonstration board 1.4 sample devices the picdem pic18 explorer demonstration board comes with two sample devices that alternately can be used as the main microcontroller: ? an 18-pin, 5v pic microcontroller (the pic18f8722) mounted on the board ? a 3.3v pic18 device (pic18f87j11) mounted on an 80-pin pim that connects to the demo board via an 80-pin male 1.5 sample programs the picdem pic18 explorer demonstration board kit includes a cd-rom with sample demonstration programs. these programs may be used with the included sample devices and with an in-circuit debugger (icd). also provided on the disc is demonstration source code that includes several assembly source code (asm) files and one hex compiled code file. 29 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 8 ? 2008 microchip technology inc. notes:
? 2008 microchip technology inc. ds51721b-page 9 picdem? pic18 explorer demonstration board user?s guide chapter 2. getting started the picdem? pic18 explorer demonstration board may be used in a variety of ways. table 2-1 lists the three primary configurations and the required equipment and capabilities of each. this chapter describes: ? how to implement each of the uses described in table 2-1 ? how to reprogram the main and rs-232 to usb microcontrollers ? how to connect the demonstration board to a host pc for rs-232 communication 2.1 board as stand-alone device in using the picdem pic18 explorer demonstration board as a stand-alone device, an implementation can: ? use the board as is, utilizing the firmware loaded on the main, pic18f8722 microcontroller and rs-232 to usb pic18lf2450 microcontroller ? reprogram the main, pic18f8722 microcontroller or the rs-232 to usb, pic18lf2450 microcontroller and demonstrate user programs table 2-1: picdem? pic18 explorer demonstration bo ard configurations configuration board conne ctions board capabilities stand-alone board power supply ? access board?s full functionality ? demonstrate sample code ? display functionality with lcd or leds ? connect icd/programmer for debugging or programming ? connect pictail? daughter cards board with in-circuit debugger/programmer ? power supply ? in-circuit debugger (icd) that also can be used as a programmer ? access board?s full functionality ? demonstrate sample code ? develop and debug code ? reprogram microcontrollers ? connect pictail daughter cards board with alternate microcontroller, attached through a plug-in module (pim) ? power supply ? icd that also can be used as a programmer ? pim with mounted microcontroller ? substitute pim-mounted device as main microcontroller ? ? use 3.3v or 5v devices as main microcontroller ? demonstrate sample code ? develop and debug code ? reprogram microcontrollers ? connect pictail daughter cards ? pim enables 80, 64, 44 and 28-pin devices to be used as the main microcontroller. for information on the available pims, go to http://microchip.com .
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 10 ? 2008 microchip technology inc. 2.1.1 using the board as is to immediately implement the picdem pic18 explorer demonstration board to demonstrate the pic18f8722 microcontroller: 1. designate the mounted, pic18f8722 device as the board?s main microcontroller by moving switch s4 to pic mcu, as shown in figure 2-1. figure 2-1: s4 switch ? se tting for default main microcontroller 2. enable the leds by placing a jumper on jp1, as shown in figure 2-2. figure 2-2: jp1, jp2 and jp3 jumpers 3. enable the eeprom and the lcd by placing a jumper on jp2 and jp3, as shown in figure 2-2. 4. apply power to the board. for information on acceptable power sources, see appendix a. ?hardware details?. the device now can be demonstrated using the tutorial program. (see section 3.1 ?tutorial program operation? .) pic ? mcu s4 ice s4 switch switch location switch position jp2 jp3 jp1
getting started ? 2008 microchip technology inc. ds51721b-page 11 2.1.2 reprogramming the microcontroller either or both the main pic18f8722 microcontroller and rs-232-usb, or the pic18lf2450 microcontroller, can be reprogrammed for running the board as a stand-alone device. to implement this usage: 1. reprogram either or both devices, as described in section 2.4 ?programming the microcontrollers? . 2. disconnect the programming devices. 3. follow the procedure given in section 2.1.1 ?using the board as is? . 2.2 board with in-circuit debugger the picdem pic18 explorer demonstration board can also be connected to an in-circuit debugger (icd) that is connected to a host pc. this can be done with the board?s main microcontroller configured as either the mounted pic18f8722 device or an alternate device mounted to a pim that is plugged into the board. (for information on pim attached devices, see section 2.3 ?board with pim attached devices? .) the mplab ? icd 2 in-circuit debugger is an inexpensive icd that could be used. (for more information, see section 2.4.1 ?programming requirements? .) the icd is connected, as shown in figure 2-3, to the icd connector. for operational information, see ? mplab ? icd 2 in-circuit debugger user?s guide? (ds51331). the picdem? pic18 explorer demonstration board can alternately use the mplab ? real ice? emulator as a debugger. for more information, see the ? microchip development systems ordering guide? (ds30177). figure 2-3: board with mplab ? icd 2 in-circuit debugger attached for information on other microcontroller compatible icd or ice devices, see the ? microchip development systems ordering guide? or the microchip web site at http://microchip.com .
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 12 ? 2008 microchip technology inc. 2.3 board with pim attached devices the picdem pic18 explorer demonstration board also can be used to demonstrate other pic18 devices ? having them replace the pic18f8722 mounted on the board as the board?s main microcontroller. this is done by attaching a plug-in module (pim) that has the other microcontroller mounted to it. the picdem pic18 explorer demonstration board comes with the pic18f87j11 pim representing the super set device for the pic18 j-series of products. figure 2-4: picdem? pic18 explor er demonstration board with pim the pim enables the attachment of 80, 64, 44 or 28-pin devices. some pims also enable the board?s 5v output to be automatically reset to 3.3v. for a list of microcontroller-compatible pims, see the ? microchip development systems ordering guide? (ds30177) or go to http://microchip.com . plug-in module (pim)
getting started ? 2008 microchip technology inc. ds51721b-page 13 2.3.1 attaching the pim to attach the pim: 1. seat the pim in the 80-pin, elevated, male connectors that encircle the pic18f8722 (see figure 2-5). figure 2-5: pim conne ctors and s4 switch alternately, an in-circuit emulator (ice) can be attached to the male connectors. this enables in-circuit emulation and user development and debugging of code. for information on this use, see the microchip web site (http://microchip.com ). 2. to designate the pim-mounted device as the main microcontroller, set switch s4 (shown in figure 2-5) to ice (see figure 2-6). figure 2-6: s4 switch ? setti ng for pim-mo unted devices 3. if you are converting from the board?s default v dd of 5v, see ?varying the device voltage (5v/3.3v)? on page 14 . pim connectors s4 switch pic ? mcu s4 ice
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 14 ? 2008 microchip technology inc. 2.3.2 varying the device voltage (5v/3.3v) by default, the picdem pic18 explorer demonstration board?s v dd supply is 5v. the v dd can be varied, for pim-mounted microcontrollers, from 5 to 3.3v to accommodate devices running at 5 or 3.3v. this v dd is named var. the picdem pic18 explorer demonstration board enables the voltage change with pim connection headers and a variable voltage regulator. pims mounted with 3.3v devices implement the voltage change through two resistors with values that produce the desired voltage. (see ?calculating other v dd values? on page 15 .) the voltage varying hardware includes: ? an adjustable voltage regulator, the lm317 ? located on the board, left of the pim connectors and marked as u2 (recognizable by the to-220 package commonly used for transistors) ? header j2 ? located above the pim connectors ? resistors r25 and r26 ? located below jumper j13 ? resistors r101 and r102 ? located on the pim board in setting the board?s voltage: ? for the default, 5v voltage ? - for board-mounted pic18f8722 device: ? board resistor r25 = 1 k ? board resistor r26 = 330 - for a pim-mounted, 5v microcontroller: ? board resistors r25 and r26 ? same values of 1 k and 330 , respectively ? pim-mounted resistors r101 and r102 ? unpopulated ? for 3.3v v dd (achieved only with a pim with a mounted 3.3v device, such as the pic18f87j11) ? - header j2 goes into the pim board where resistors r101 and r102 are inserted in parallel to the board resistors r25 and r26 - pim board resistor r101 can be unpopulated - pim board resistor r102 can be 1.18 k . note: for precise adjustment of v dd , 1% resistors are recommended.
getting started ? 2008 microchip technology inc. ds51721b-page 15 2.3.3 calculating other v dd values other v dd values can be produced by the lm317 adjustable voltage regulator by populating the pim board?s r101 and r102 with different value resistors. a brief overview follows, on how to calculate alternate values for these resistors. for detailed information, see the lm317 data sheet. equation 2-1: regulato r voltage output i adj is minimized by the lm317, so it can be assumed to be zero, or very small. v ref is the reference voltage developed by the lm317 between the output and adjustment terminal and equals 1.25v. that produces the equations shown in equation 2-2. as stated previously, r25 = 1 k , and r26 = 330 . without r102 and r101 being inserted in parallel on the pim board, v out =1.25v(1+ 1 k /330 ) = 5.04v. to calculate a desired v out : 1. solve for r2, given r1 = r26 = 330 . 2. now knowing r2 and r25, solve for r102. 3. determine the nearest available resistor value for r102 and recalculate the resulting v dd to make sure it does not exceed the maximum v dd for the part you will be using. table 2-2 shows the r101 and r102 resistor values to use for different v dd values. the table assumes that the picdem pic18 explorer demonstration board?s r25 and r26 resistors are left at their default values of 1k and 330 , respectively. equation 2-2: cal culating output voltage table 2-2: calculating r101, r102 values for v dd outputs ? v dd r101 value r102 value 5v open open 3.6v open 1.62 k 3.3v open 1.18 k 3.0v open 866 r ? this table assumes that the picdem pic18 explorer demonstration board ?s r25 and r26 resistors are left at their default values of 1 k and 330 , respectively. v out v ref 1 r2 r1 ------ - + ?? ?? i adj r2 ? + = v out 1.25v 1 r2 r1 ------ - + ?? ?? = r2 r25 r102 || r25 r102 ? () r25 r102 + () --------------------------------- - == r1 r26 r101 || r26 r101 ? () r26 r101 + () --------------------------------- - ==
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 16 ? 2008 microchip technology inc. 2.4 programming the microcontrollers either or both the main microcontroller (pic18f8722) and the rs-232 to usb, or the pic18lf2450 microcontroller, can be reprogrammed. the main microcontroller that is reprogrammed can either be the board-mounted pic18f8722 device or an alternate main microcontroller, mounted on a pim attached to the board. this section discusses: ? programming requirements ? loading the program 2.4.1 programming requirements to reprogram a sample device, the following is required: ? program source code ? sample code is preloaded on the device, but user source code can be substituted. if this is done, the sample program can be restored using the file on the board kit?s cd-rom. ? an assembler or compiler ? source code must be assembled or compiled into a hex file before it can be programmed into the device. ? a programmer ? once the code is in the hex file format, this device programs the microcontroller?s flash memory. if the code protection bit(s) have not been programmed, the on-chip program memory can be read out for verification purposes. in meeting these requirements: ? code development and debugging ? the free mplab ? ide software development tool includes a debugger and sev- eral other software tools as well as a unified graphical user interface for working with other microchip and third-party software and hardware tools. ? assembler ? the free mplab ide tool includes the mpasm? assembler. ? compiler ? microchip?s mplab ? c18 is a c compiler for pic18 microcontrollers and is fully integrated for the mplab ide environment. ? programmer ? microchip?s mplab ? in-circuit debugger (icd) 2 or pickit? starter kit can be used to program the device and both are fully integrated for the mplab ide environment. the free mplab ide tool set and its documentation can be downloaded at http://microchip.com . for a list of the other mentioned devices? documentation, see ?recommended reading? on page 3 . other assemblers/compilers can be used. for a list of tools compatible with pic microcontrollers, see the microchip web site (http://microchip.com ).
getting started ? 2008 microchip technology inc. ds51721b-page 17 2.4.2 loading the program this section describes how to program the picdem pic18 explorer demonstration board using the mplab ? integrated development environment (ide) and the sample hex code on the compact disc in the picdem pic18 explorer demonstration board?s kit. 2.4.2.1 reprogramming with the compact disc sample code to program the pic18f8722: 1. launch the mplab ide application and select configure>select device>18f8722 . 2. to start the programmer, select programmer>select programmer> icd2 . 3. to open the hex code file, select file>import>open and select cd/hex/18f8722/demo8722.hex . 4. connect the j4 jumper to main (main controller), as shown in figure 2-7. figure 2-7: j4 jumper and ?main? setting 5. move the s4 switch to pic mcu, as described in ?using the board as is? on page 10 . to program the pic18f87j11 on the pim: 1. attach the pim to the demonstration board. 2. move the s4 switch to ice . 3. launch the mplab ide application and select configure>select device>18f87j11 . 4. to start the programmer, select programmer>select programmer>icd2 . 5. to open the hex code file, select file>import>open and select cd/hex/18f87j11/demo87j11.hex . 6. connect the j4 jumper to main (main controller), as shown in figure 2-7. j4 jumper jumper location jumper setting usb j4 main note: both steps 1 and 2 are described in ?attaching the pim? on page 13 .
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 18 ? 2008 microchip technology inc. to program the pic18lf2450 for rs-232 uart communication: 1. launch the mplab ide application and select configure>select device>18f2450 . 2. to start the programmer, select programmer>select programmer>icd2 . 3. to open the hex code file, select file>import>open and select cd/hex/rs232_usb_18f2450/demo2450.hex . 4. connect the j4 jumper to usb , as shown in figure 2-8. figure 2-8: j4 jumper and ?usb? setting j4 jumper jumper location jumper setting usb j4 main
getting started ? 2008 microchip technology inc. ds51721b-page 19 2.5 connecting to host pc for rs-232 communication as shown in figure 2-9, there are two ways to connect a pc to the picdem pic18 explorer demonstration board. ? via the usb port ? via the db9 pin (rs-232 port) figure 2-9: board to pc connection 2.5.1 pc connection via db9 pin to connect the picdem pic18 explorer demonstration board to a host pc via the nine-pin db9 connector, set jumper j13, as shown in the first illustration in figure 2-10. this routes the main microcontroller?s communications through a transceiver. figure 2-10: jumper j13 ? settings for rs-232 or usb host pc board usb db9 pic18lf2450 microcontroller j13 main pic ? mcu uart transceiver tx rx tx rx tx rx x 1 x 2 connecting to nine-pin rs-232 port connecting to usb port j13 j13
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 20 ? 2008 microchip technology inc. 2.5.2 pc connection via usb port if the board pc communication is via the usb port, the data will be routed through the pic18lf2450 mounted on the board, to convert the rs-232 communication to the usb protocol. to connect the picdem pic18 explorer demonstration board to a host pc via the usb port: 1. set jumper j13, as shown in the second illustration in figure 2-10. 2. install the required file on the host pc. (see the following procedure.) if the usb port is used, an *.inf file must be installed on the host pc. to do this: 1. create a folder named, hpcinf , anywhere on the host pc?s hard drive. 2. using the development kit?s cd, copy the file, mchpcdc.inf , into that folder. 3. connect the board to the pc and power up the board. the pop-up window, shown in figure 2-11, appears. figure 2-11: installing usb *.inf file on pc ? screen 1 4. select the install from a list or specific location option and click next . the screen shown in figure 2-12 appears. note: this procedure displays the dialog boxes that appear for the windows ? xp operating system.
getting started ? 2008 microchip technology inc. ds51721b-page 21 figure 2-12: installing usb *.inf file on pc ? screen 2 5. select the check box, include this location in the search , enter the name of the path (created in step 1) in the text box below and click next . the screen shown in figure 2-13 appears. figure 2-13: installing usb *.inf file on pc ? screen 4 6. press finish . the rs-232 to usb functionality is ready to be used.
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 22 ? 2008 microchip technology inc. notes:
? 2008 microchip technology inc. ds51721b-page 23 picdem? pic18 explorer demonstration board user?s guide chapter 3. picdem? pic18 explorer demonstration board tutorial program the tutorial program is preprogrammed into the pic18f8722 on the picdem pic18 explorer demonstration board. this program is also on the picdem pic18 explorer demonstration board kit?s cd-rom so that it can be reprogrammed on the sample device if it the device had been preprogrammed. for detailed information on the picdem pic18 explorer demonstration board hardware, see appendix a. ?hardware details? . 3.1 tutorial program operation the tutorial program consists of three components that appear sequentially on the board?s lcd. a flowchart, showing the button navigation through the entire program, is given in figure 3-2. when the board boots up, the device name appears on the lcd and the program proceeds to the first component. to select menu options, use the rb0 and ra5 buttons on the bottom of the board (see figure 3-1). figure 3-1: rb0 and ra5 buttons 1. voltmeter this mode uses the analog-to-digital converter (a/d) module to measure the voltage of the r3 potentiometer and display a value between 0.00v and 5.00v on the lcd. (in the case of 3.3v devices, the displayed value will be 0.00v to 3.3v.) the voltage reading is updated continually until the mode is exited by pressing rb0 . 2. temperature this mode uses an mcp9701a thermal sensor to measure ambient temperature in celsius and displays it on the lcd. the program also stores the current temperature, when exited, by writing to a defined address on the external, on-board eeprom. communication between the microcontroller and sensor is done by the a/d module. to exit this mode, press rb0 . rb0 button ra5 button
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 24 ? 2008 microchip technology inc. 3. clock once this mode is entered from the main menu, a real-time clock (rtc) will start counting from 00:00:00. the timer1 module uses a 32-khz clock crystal to establish the clock. the program also sends the time data to the rs-232 serial port using the universal asynchronous receiver transmitter (uart) on the microcontroller. this enables the host pc to display the lcd?s data using the hyper terminal application on the pc. if using the hyper terminal application, use the settings given in table 3-1. to set the clock time: 1. enter the clock-setting program by pressing rb0 . the clock begins running. 2. to set the hours value, press ra5 . 3. increment the hours to the desired value by pressing rb0 . 4. to set the minutes value, press ra5 . 5. increment the minutes to the desired value by pressing rb0 . 6. to start the clock with the set time, press ra5 . the lcd returns to an active clock display. 7. to return to the main menu, press rb0 . note: for information on connecting the board?s rs-232 serial port to the pc, see section 2.5 ?connecting to host pc for rs-232 communication? . table 3-1: hyper terminal settings field setting bits per second 9600 data bits 8 parity none stop bits 1 flow control none
tutorial program ? 2008 microchip technology inc. ds51721b-page 25 figure 3-2: tutorial program flowchart 3.2 source code and data sheets the picdem pic18 explorer demonstration board kit?s cd-rom contains the assembled tutorial program (the hex files) as well as the source code used to create those hex files. the cd has device-specific directories for each set of source code and hex files. for information on reprogramming the device with new or modified code, see section 2.1 ?board as stand-alone device? . power-up picdem? pic18 explorer voltmeter ra5 = next rb0 = now temperature ra5 = next rb0 = now clock ra5 = next rb0 = now volt = n.nn v rb0 = exit temperature - 022c rb0 = exit 00.00.02 ra5 = set, rb0 = menu 00.00.03 ra5 = ->, rb0 = ++
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 26 ? 2008 microchip technology inc. notes:
? 2008 microchip technology inc. ds51721b-page 27 picdem? pic18 explorer demonstration board user?s guide appendix a. hardware details a.1 hardware elements a.1.1 processor sockets the picdem pic18 explorer demonstration board can be populated with 64 and 80-pin devices. using a plug-in module (pim), the board also can support 28, 44, 64 and 80-pin devices. for a list of available pims, go to the microchip web site at http://microchip.com . a.1.2 display eight leds are connected to portd of the picdem pic18 explorer demonstration board. the portd pins are set high to light the leds. these leds may be disconnected by removing jumper jp1. one led (d9) lights to indicate when the board has power. a.1.3 power supply the pic18 explorer board does not come with a power supply. it can be powered, via j1, with an unregulated dc supply of 9v to 15v. the preferred supply is 9v. for default functionality, a power supply with a current capability of 250 ma is sufficient. since the board can serve as a modular development platform connecting to multiple expansion boards, voltage regulators (q1 and q2) are used. their maximum current capability is 800 ma. this current capacity may require a power supply of up to 1.6a. because the regulators do not have heat sinks, long-term operation at such loads is not recommended. when the board is powered, led d9 is on, indicating the presence of v_var. if an external supply is needed, microchip?s 9v, 750 ma power supply (part number ac162039) can be used. a.1.4 rs-232 serial port an rs-232, level-shifting integrated circuit has been provided with all the necessary hardware to support the connection of an rs-232 host through the db9 connector. the port can be connected to a pc using a straight-through cable. the pic18 receive and transmit pins are tied to the receive and transmit lines of the max3232 transceiver through jumper j13. that jumper can direct where the receive and transmit pins of the pic18 are connected, either to: ? the pic18lf2450 which does the rs-232 to usb communication ? the max3232 transceiver note: do not attempt to power the picdem pic18 explorer demonstration board using the mplab icd 2 module. that module is not designed to be a usb bus power source. note: for details on this connection, see section 2.5 ?connecting to host pc for rs-232 communication? .
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 28 ? 2008 microchip technology inc. a.1.5 switches the following switches are available: ? s1 ? active-low switch connected to rb0 ? s2 ? active-low switch connected to ra5 ? s3 ? mclr to hard reset the processor ? s4 ? mclr select switch. if the on board, pic18f8722 microcontroller is being used, set this to pic mcu. if an alternate, pim-mounted microcontroller is being used, set this to ice . a.1.6 oscillator options the main oscillator uses a 10 mhz crystal (y1) which serves as the controller?s primary oscillator. a second circuit, using a 32.768-khz (watch type) crystal (y2), functions as the timer1 oscillator, the source for the real-time clock/calendar (rtcc) and secondary oscillator. the pic18lf2450, the heart of the rs-232 to usb conversion, is independently clocked with its own 12 mhz crystal (y3). a.1.7 analog input (potentiometer) a 10 k potentiometer is connected through a series resistor to an0. to provide an analog input to one of the controller?s analog-to-digital (a/d) channels, the potentiometer can be adjusted from v dd to gnd. a.1.8 icd connector microchip?s low-cost, in-circuit debugger, mplab icd 2, can be connected to the modular connector (j10). the icd connector utilizes rb6 and rb7 for in-circuit debugging. a.1.9 pickit? 2 connector microchip?s low-cost programmer, pickit 2, can be connected to the 6-pin interface provided by j12. a.1.10 temperature sensor the analog thermal sensor, mcp9701a (u1), is used for monitoring temperature. the device is connected to the analog-to-digital converter (a/d) module through ra1. a.1.11 serial eeprom a 25lc256, 256 kbit (32k x 8) serial eeprom (u9) is included for nonvolatile storage of firmware. the eeprom also can demonstrate the operation of the serial peripheral interface (spi) bus. the eeprom is enabled or disabled from the spi bus by jumper jp2. a.1.12 pictail? daughter board connector the pictail? interface enables the picdem pic18 explorer demonstration board to be connected directly to available pictail daughter board cards. this provides a one-to-one connection between the microcontrollers and the cards through spi/i 2 c? interfaces. note: for details, see section 2.4.1 ?programming requirements? . note: for details, see section 2.4.1 ?programming requirements? .
hardware details ? 2008 microchip technology inc. ds51721b-page 29 a.1.13 lcd an lcd display with two lines, 16 characters each, is connected to the spi i/o expander, mcp23s17. the two control lines and eight data lines are connected to the i/o expander. the i/o expander has an spi interface that connects it to the microcontroller.the i/o expander is disabled or enabled from the spi by jumper jp3. a.1.14 sample devices a sample part programmed with a simple program is included in the picdem pic18 explorer demonstration board kit. the devices? i/o features and port connections are listed in table a-1. table a-1: sample device i/o features and connections device leds rs-232/ usb s1 s2 s3 lcd pot r3 eeprom temp sensor icd/ pickit? 2 y1, y2 pic18f8722 rd7:rd0 rc6/rc7 rb0 ra5 mclr rc3:rc5 ra0 rc3:rc5 ra1 rb6/rb7 yes pic18f87j11 rd7:rd0 rc6/rc7 rb0 ra5 mclr rc3:rc5 ra0 rc3:rc5 ra1 rb6/rb7 yes
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 30 ? 2008 microchip technology inc. a.2 board layout and schematics figure a-1: picdem? pic18 expl orer demonstration board layout picdem? pic18 explorer
hardware details ? 2008 microchip technology inc. ds51721b-page 31 figure a-2: picdem? pic18 explorer de monstration board schematic ? 1 of 2 pic tail ra0 rb0 rd7 rd5 rd4 rd2 rd1 1k r10 1k r7 rb1 rc5 rc3 v_var db6 db5 db3 db2 db0 ra1 v_var rc4 rb2 txd rs v_var rc3 v_var db4 db2 vo db4 db2 vo rh5 rh3 rj7 rj5 rj1 re7 re5 rf5 rf3 rg5 rg3 rd7 rd5 rd1 rb0 rb2 rb3 rb5 rb6 rc6 rc7 ra7 re3 icemclr rh4 rh2 rj6 rj4 rj0 re6 re4 rf4 rf2 rg4 rg2 rd6 rd4 rd0 rc2 rc2 rc1 rc1 ra2 ra2 ra1 ra1 rc3 rc3 rc4 rc4 ra3 ra3 ra4 ra4 c24 tbd pot 4 3 2 1 s1 v_var vin power 330_1% r26 4 3 2 1 s2 rd6 rd3 rd0 +3.3v +5v d9 1k r12 1k r9 1k r11 1k r6 1k r8 1k r5 ra2 v_var ra3 c35 .1uf v_var db7 db4 v_var db1 15k r40 e c42 .1uf rc5 v_var c38 .1uf db6 rs db0 db6 rs db0 rh7 rh1 rj3 rf7 rf1 rg1 re1 rd3 rb1 rb4 rb7 ra6 re2 j9 1 2 3 4 j6 +3.3v rh6 +3.3v rh0 rj2 rf6 rf0 rg0 re0 rd2 v_var tm rc0 ra0 ra0 rc0 rc5 ra5 ra5 rc5 s1gb13 15k r14 c28 .1uf c4 .1uf c29 .1uf c30 .1uf v_var r13 1k r20 15k v_var c36 .1uf c37 .1uf 9 pin9 8 pin8 7 pin7 6 pin6 1 pin1 2 pin2 3 pin3 4 pin4 5 pin5 80 - 84 pins 64 - 68 pins 40 - 44 pins 8 - 14 - 18 - 20 - 28 pins j14 1 14 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19 20 j5 16 15 9 10 3 4 14 13 11 12 5 6 1 2 7 8 j7 1 2 3 5 7 4 6 8 11 12 9 10 j11 r4 1k switch rxd ra5 db7 db5 db1 e temperature sensor db7 db5 db1 e icemclr vin vin adj vin rh4 rh5 rh2 rh3 rj6 rj7 rj4 rj5 rj0 rj1 re6 re7 re4 re5 rf4 rf5 rf2 rf3 rg4 picmclr rg2 rg3 v_var rd6 rd7 rd4 rd5 rd0 rd1 rb0 rb2 rb3 rb5 rb6 rc6 rc7 osc1 re3 c3 220uf ece-v1ea221up v_var r15 1k tp2 c34 .1uf tp1 v_var tp4 tp5 power indicator r28 1k v_var d8 jp1 d5 d6 d7 c1 .1uf d2 d3 d4 d1 v_var r32 10 rf6 v_var +5v db3 +5v db3 +5v +3.3v +5v +5v +5v rh6 rh7 rj2 rh0 rj3 rh1 v_var rf6 rf7 rg0 rf0 rg1 rf1 rd2 re0 rd3 re1 rb1 rb7 rb4 re2 osc2 1 3 2 adj r25 1k_1% c27 100uf ece-v1aa101wr 47uf c45 47uf c49 c39 .1uf jp3 15k r27 11 din1 10 din2 12 rout1 9 rout2 3 c1- 1 c1+ 5 c2- 4 c2+ 6 v- 2 v+ 15 gnd 16 vcc 8 rin2 13 rin1 7 dout2 14 dout1 u6 max3232 r16 15k mcp23s17 1k r38 10k r39 25lc256 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 2 3 4 j3 mcp9701a r36 470 1k r29 jp2 1 adjust 3 in 2 out lm317 r35 470 1 gnd 3 in 2 out lm1117 lcm-so1602 dtr/m 1 gnd 3 in 2 out lm1117 15 led_+ 13 d6 10 d3 7 d0 4 rs 1 vss 14 d7 16 led_- 9 d2 6 e 3 vo 11 d4 8 d1 2 vdd 5 r/w 12 d5 mdls-16264 ss-dif
picdem? pic18 explorer demonstration board user?s guide ds51721b-page 32 ? 2008 microchip technology inc. figure a-3: picdem? pic18 explorer de monstration board schematic ? 2 of 2 rd0 rd1 rd3 rd4 osc2 rd6 rd7 re0 re2 re3 re5 re6 rf1 rf2 rf4 rf5 rf7 rh5 rh4 rf0 re3 rf0 re4 v_var ra3 re6 ra3 ra2 re7 ra2 ra0 v_var ra0 ra5 rd2 v_var ra4 rd3 ra5 rc0 rd5 rc1 rc6 rd6 rc0 rc7 rj4 picmclr rh1 rh0 re3 v_var re4 re6 re7 v_var rd1 rd2 rd4 rd5 rd7 rj0 rc7 rc4 rb2 rc6 rc3 rc0 rb4 rb1 ra4 ra0 vbus v_var rb7 rc6 rc7 rg0 rg2 rh2 rh4 rj0 rj4 rj6 rf2 rf3 rf5 rf6 v_var picmclr rg3 rg1 rg0 re1 pic18f6627 pic18f6622 rc2 rc3 rc5 rb7 osc1 osc2 rb6 rb5 rb3 rb2 rb0 rj7 rc2 rc4 rc5 v_var osc1 rb5 rb4 rb2 rb1 rj3 rj2 v_var main_ mclr rb6 rb7 mclr mclr main_ mclr adj vin rb6 rb7 v_var mclr c31 .1uf rb6 rc2 ra2 rb0 c15 22pf r34 1m c16 22pf osc2 rd2 re1 rd5 osc1 rc0 rf3 re4 rf0 re7 rc1 +3.3v rb6 rf6 txd rxd vbus rh6 rh0 rg4 rj2 rf7 rf4 rg2 rg4 re0 rf1 re5 re2 rf1 ra1 pic18f6527 rd1 rd0 ra1 rc7 rc1 rd7 rd4 rc6 ra4 rc4 rb4 rb1 rj5 rj6 rb7 rc3 osc2 rb6 rb0 rb3 v_var v_var c11 .1uf usb_mclr v_var icd connector c13 .1uf c14 .1uf picmclr icemclr 12mhz y3 47k r19 c25 22pf c26 22pf c40 .47uf c32 .1uf re5 re2 v_var rd0 rd6 rd3 rj1 c18 .1uf 4.7k r18 c19 .1uf r17 47k c20 .1uf c21 .1uf rc1 rb7 rb5 ra3 ra1 r37 33k usb_mclr rg3 pic18f8627 rh1 pic18f8527 rh5 rh7 rj1 rj3 rj7 rh7 rf2 rf4 rf5 rf7 v_var usb_d+ rg4 usb_d- rg3 rg2 rg0 re0 rh3 rh2 main_ mclr rc5 rb3 ra5 osc1 r21 1m r33 10k v_var rg1 pic18f8622 rh3 rj5 rh6 rf6 rf3 icemclr re1 rg1 v_var 4 3 2 1 s3 r23 1k c17 .1uf c10 .1uf c12 .1uf 10mhz y1 3 4 1 2 5 6 j8 c22 .1uf c23 .1uf v_var 2 1 3 j2 r22 47k 1 2 3 j4 c2 22pf c33 22pf 1 2 3 4 6 5 j10 r24 100 1 2 3 4 5 6 j12 pickit2 programmer 32khz y2 5 vss 17 vdd 23 rb5 20 rb2 7 osc2 15 rc7/rx 14 rc6/tx 9 rc1 8 rc0 22 rb4 21 rb3 6 osc1 16 vss 11 vusb 25 rb7 24 rb6 19 rb1 18 rb0 4 ra5/an4 1 ra2/vref- 27 ra0/an0 28 ra1/an1 2 ra3/vref+ 3 ra4/rcv 26 mclr/re3 13 rc5/d+/vp 10 rc2/ccp1 12 rc4/d-/vm u5 pic18lf2450 72 rd0/psp0/ad0 67 rd3/psp3/ad3 64 rd6/psp6/ad6 78 re2/cs/ad10 75 re5/ad13 23 rf1/an6/c2out 16 rf4/an9 13 rf7/ss1 49 osc1/clki/ra7 32 vdd 70 vss 11 vss 69 rd1/psp1/ad1 66 rd4/psp4/ad4 68 rd2/psp2/ad2 63 rd7/psp7/ad7 4 re0/rd/ad8 77 re3/ad11 74 re6/ad14 76 re4/ad12 3 re1/wr/ad9 18 rf2/an7/c1out 15 rf5/an10/cvref 24 rf0/an5 17 rf3/an8 14 rf6/an11 26 avss 71 vdd 25 avdd 48 vdd 9 mclr/vpp 51 vss 31 vss 50 osc2/clko/ra6 46 rc5/sdo1 43 rc2/eccp1 52 rb6/kbi2pgc 55 rb3/int3/eccp2 58 rb0/int0 33 ra5/an4/hlvdin 28 ra2/an2/vref- 7 rg2/rx2/dt2 80 rh1/a17 22 rh4/an12 19 rh7/an15 62 rj0/ale 59 rj3/wrh 41 rj6/lb 65 rd5/psp5/ad5 73 re7/ccp2/ad15 37 rc6/tx1/ck1 38 rc7/rx1/dt1 36 rc0/t1oso/t13cki 47 rb7/kbi3/pgd 54 rb4/kbi0 35 rc1/t1osi/ccp2 53 rb5/kbi1/pgm 44 rc3/sck1/scl1 57 rb1/int1 27 ra3/an3/vref+ 30 ra0/an0 34 ra4/t0cki 29 ra1/an1 5 rg0/ccp3 10 rg4/ccp5 79 rh0/a16 2 rh3/a19 8 rg3/ccp4 1 rh2/a18 21 rh5/an13 60 rj2/wrl 39 rj4/ba0 42 rj7/ub 61 rj1/oe 40 rj5/ce 56 rb2/int2 45 rc4/sdi1/sda1 12 vdd 6 rg1/tx2/ck2 20 rh6/an14 u4 pic18f8722 1 re1/wr/p2c 2 re0/rd/p2d 3 rg0/eccp3/p3a 4 rg1 5 rg2 6 rg3/p3d 7 rg5/mclr/vpp 8 rg4/p1d 9 vss 10 vdd 11 rf7/ ss 12 rf6/an11 13 rf5/an10/cvref 14 rf4/an9 15 rf3/an8 16 rf2/an7 48 rb0/int0 47 rb1/int1 46 rb2/int2 45 rb3/int3 44 rb4/kbi0 43 rb5/kbi1/pgm 42 rb6/kbi2/pgc 41 vss 40 ra6/osc2/clko 39 ra7/osc1/clki 38 vdd 37 rb7/kbi3/pgd 36 rc5/sdo1 35 rc4/sdi1/sda1 34 rc3/sck1/scl1 33 rc2/eccp1/p1a 17 rf1/an6 18 rf0/an5 19 avdd 20 avss 21 ra3/an3/vref+ 22 ra2/an2/vref- 23 ra1/an1 24 ra0/an0 25 vss 26 vdd 27 ra5/an4/lvdin 28 ra4/t0cki 29 rc1/t1osi/eccp2/p2a 30 rc0/t1oso/t13cki 31 rc6/tx/ck1 32 rc7/rx/dt1 64 re2/cs/p2b 63 re3/p3c 62 re4/p3b 61 re5/p1c 60 re6/p1b 59 re7/eccp2/p2a 58 rd0/psp0 57 vdd 56 vss 55 rd1/psp1 54 rd2/psp2 53 rd3/psp3 52 rd4/psp4 51 rd5/psp5 50 rd6/psp6 49 rd7/psp7 u7 pic18f6522 33 rh5 36 rf0 39 ra3 42 ra0 45 vdd 51 rc7 11 rh1 8 re3 5 re6 2 vdd 83 rd1 48 rc1/t1osi 80 rd4 77 rd7 32 rh6 29 rf3 26 rf6 23 vss 20 rg5/mclr 17 rg1 14 re1 54 rj6 57 rc3 60 rb7 63 osc2/ra6 66 rb6 69 rb3 72 rb0 27 rf5 28 rf4 30 rf2 31 rh7 21 rg4 22 nc 24 vdd 25 rf7 18 rg2 19 rg3 15 re0 16 rg0 12 rh2 13 rh3 38 avss 35 rf1 37 avdd 41 ra1 43 nc 44 vss 47 ra4 50 rc6 53 rj5 58 rc4 59 rc5 56 rc2 55 rj7 61 vdd 62 osc1 64 nc 65 vss 71 rb1 70 rb2 67 rb5 68 rb4 74 rj2 73 rj3 6 re5 9 re2 7 re4 3 rd0 1 nc 84 vss 49 rc0/t1oso 81 rd3 79 rd5 78 rd6 75 rj1 34 rh4 40 ra2 46 ra5 52 rj4 10 rh0 4 re7 82 rd2 76 rj0 u1a ice module
hardware details ? 2008 microchip technology inc. ds51721b-page 33 notes:
ds51721b-page 34 ? 2008 microchip technology inc. americas corporate office 2355 west chandler blvd. chandler, az 85224-6199 tel: 480-792-7200 fax: 480-792-7277 technical support: http://support.microchip.com web address: www.microchip.com atlanta duluth, ga tel: 678-957-9614 fax: 678-957-1455 boston westborough, ma tel: 774-760-0087 fax: 774-760-0088 chicago itasca, il tel: 630-285-0071 fax: 630-285-0075 dallas addison, tx tel: 972-818-7423 fax: 972-818-2924 detroit farmington hills, mi tel: 248-538-2250 fax: 248-538-2260 kokomo kokomo, in tel: 765-864-8360 fax: 765-864-8387 los angeles mission viejo, ca tel: 949-462-9523 fax: 949-462-9608 santa clara santa clara, ca tel: 408-961-6444 fax: 408-961-6445 toronto mississauga, ontario, canada tel: 905-673-0699 fax: 905-673-6509 asia/pacific asia pacific office suites 3707-14, 37th floor tower 6, the gateway harbour city, kowloon hong kong tel: 852-2401-1200 fax: 852-2401-3431 australia - sydney tel: 61-2-9868-6733 fax: 61-2-9868-6755 china - beijing tel: 86-10-8528-2100 fax: 86-10-8528-2104 china - chengdu tel: 86-28-8665-5511 fax: 86-28-8665-7889 china - hong kong sar tel: 852-2401-1200 fax: 852-2401-3431 china - nanjing tel: 86-25-8473-2460 fax: 86-25-8473-2470 china - qingdao tel: 86-532-8502-7355 fax: 86-532-8502-7205 china - shanghai tel: 86-21-5407-5533 fax: 86-21-5407-5066 china - shenyang tel: 86-24-2334-2829 fax: 86-24-2334-2393 china - shenzhen tel: 86-755-8203-2660 fax: 86-755-8203-1760 china - wuhan tel: 86-27-5980-5300 fax: 86-27-5980-5118 china - xiamen tel: 86-592-2388138 fax: 86-592-2388130 china - xian tel: 86-29-8833-7252 fax: 86-29-8833-7256 china - zhuhai tel: 86-756-3210040 fax: 86-756-3210049 asia/pacific india - bangalore tel: 91-80-4182-8400 fax: 91-80-4182-8422 india - new delhi tel: 91-11-4160-8631 fax: 91-11-4160-8632 india - pune tel: 91-20-2566-1512 fax: 91-20-2566-1513 japan - yokohama tel: 81-45-471- 6166 fax: 81-45-471-6122 korea - daegu tel: 82-53-744-4301 fax: 82-53-744-4302 korea - seoul tel: 82-2-554-7200 fax: 82-2-558-5932 or 82-2-558-5934 malaysia - kuala lumpur tel: 60-3-6201-9857 fax: 60-3-6201-9859 malaysia - penang tel: 60-4-227-8870 fax: 60-4-227-4068 philippines - manila tel: 63-2-634-9065 fax: 63-2-634-9069 singapore tel: 65-6334-8870 fax: 65-6334-8850 taiwan - hsin chu tel: 886-3-572-9526 fax: 886-3-572-6459 taiwan - kaohsiung tel: 886-7-536-4818 fax: 886-7-536-4803 taiwan - taipei tel: 886-2-2500-6610 fax: 886-2-2508-0102 thailand - bangkok tel: 66-2-694-1351 fax: 66-2-694-1350 europe austria - wels tel: 43-7242-2244-39 fax: 43-7242-2244-393 denmark - copenhagen tel: 45-4450-2828 fax: 45-4485-2829 france - paris tel: 33-1-69-53-63-20 fax: 33-1-69-30-90-79 germany - munich tel: 49-89-627-144-0 fax: 49-89-627-144-44 italy - milan tel: 39-0331-742611 fax: 39-0331-466781 netherlands - drunen tel: 31-416-690399 fax: 31-416-690340 spain - madrid tel: 34-91-708-08-90 fax: 34-91-708-08-91 uk - wokingham tel: 44-118-921-5869 fax: 44-118-921-5820 w orldwide s ales and s ervice 01/02/08


▲Up To Search▲   

 
Price & Availability of PICDEMPIC18

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X